home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990725-20000114
/
000318_news@columbia.edu _Sat Dec 4 14:34:04 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2000-01-13
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA28824
for <kermit.misc@watsun.cc.columbia.edu>; Sat, 4 Dec 1999 14:34:04 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA22779
for kermit.misc@watsun.cc.columbia.edu; Sat, 4 Dec 1999 14:18:59 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: Changing directories/overwriting files
Date: 4 Dec 1999 19:18:58 GMT
Organization: Columbia University
Message-ID: <82bpf2$m7o$1@newsmaster.cc.columbia.edu>
To: kermit.misc@columbia.edu
In article <82bo81$l3d$1@blackice.winternet.com>,
Christian Jensen <cejensen@winternet.com> wrote:
: I am new to kermit, and am having trouble with a script that uploads files
: from a CCI-DOS machine (running the newest MS-DOS kermit) to an HP-UX server
: (running C-Kermit). I am attempting to upload files to one directory, cd to
: another and upload files there, then cd to another and upload still more
: files to this third directory. The code looks something like this:
:
: cd /Net/go/dir1\13
: send file1
: output cd ..\13
: output cd dir2\13
: send file2
: output cd ..\13
: output cd dir3\13
: send file3
:
: Notice the three directories are all subdirctories off the same directory.
: In my current script, the 'cd' commands all fail for some reason, and files
: are all deposited in the same directory (the first one).
:
: What's wrong with my code? Suggestions welcome.
:
Put C-Kermit in server mode, then change your script to:
cd /Net/go/dir1\13
send file1
if fail stop 1 UPLOAD file1 failed
remote cd ../dir2
if fail stop 1 REMOTE CD dir2 failed
send file2
if fail stop 1 UPLOAD file2 failed
remote cd ../dir3
if fail stop 1 REMOTE CD dir2 failed
send file3
if fail stop 1 UPLOAD file3 failed
Maybe your original script failed because HP-UX Kermit was already in server
mode, and therefore needed client protocol commands rather than interactive
commands?
: Also, if a file is uploaded to a directory that already contains a file with
: that name, rather than overwriting the original (which is what I usually
: want), kermit renames the uploaded file by appending a ~1~ to the end of it.
:
This is not the default behavior. The default is to rename the existing file
and store the incoming file under the original name.
: How do I suppress this behavior?
: I do have the kermit book, but have not found the answers to either of the
: above in it.
:
Explained on page 196. ("File names, collision of" in the index.)
- Frank